import { request } from '@/utils/request'

export const selectPageList = (params) => {
  return request.get('/rider/selectPageList', { params })
}

export const selectList = (params) => {
  return request.get('/rider/selectList', { params })
}

export const selectById = (params) => {
  return request.get('/rider/selectById', { params })
}

export const add = (params) => {
  return request.post('/rider/add', params)
}

export const update = (params) => {
  return request.post('/rider/update', params)
}

export const remove = (params) => {
  return request.post('/rider/remove', params)
}

export const selectOrderByRider = (params) => {
  return request.get('/rider/selectOrderList', { params })
}
